package com.ruoyi.develop.lvRukumingxi.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.ruoyi.develop.lvRukumingxi.domain.LvRukumingxi;

/**
 * 出入库记录Mapper接口
 * @author qh
 * @date 2024-10-12
 */
public interface LvRukumingxiMapper {
    /**
     * 查询出入库记录
     * @param id 出入库记录主键
     * @return 出入库记录
     */
    public LvRukumingxi selectById(String id);

    public LvRukumingxi selectByParentId(String id);

    public LvRukumingxi selectByGoodssaleId(String id);
    /**
     * 查询出入库记录列表
     * @param entity 出入库记录
     * @return 出入库记录集合
     */
    public List<LvRukumingxi> selectList(LvRukumingxi entity);

    /**
     * 新增出入库记录
     * @param entity 出入库记录
     * @return 结果
     */
    public int insert(LvRukumingxi entity);

    /**
     * 修改出入库记录
     * @param entity 出入库记录
     * @return 结果
     */
    public int update(LvRukumingxi entity);

    /**
     * 删除出入库记录
     * @param id 出入库记录主键
     * @return 结果
     */
    public int deleteById(String id);
    public int deleteByIdPhysical(String id);

    /**
     * 批量删除出入库记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    public int updateRuku(String[] ids);

    String selectMaxCode(String today);

    List<LvRukumingxi> buyNotInvoiceList(LvRukumingxi entity);

    void replaceGoodsInfo(Map<String, Object> params);

    public LvRukumingxi selectBeginMoney();

    List<LvRukumingxi> selectListRemainNotZero(LvRukumingxi entity);
}
